<!DOCTYPE html>
<html lang="zh">
<head>
    <title>deerWMS-优惠介绍</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="expires" content="Wed,26 Feb 1997 08:01:01 GMT"/>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"/>
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta http-equiv="Cache-Control" content="no-cache,must-revalidate"/>
    <meta name="applicable-device" content="pc">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <base href="<%=project%>/">
    <link rel="shortcut icon" href="img/logo/logo.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="lib/jquery/ui/jquery-ui.min.css"/>
    <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.css"/>
    <link rel="stylesheet" href="lib/bootstrap3-dialog/bootstrap-dialog.css"/>
    <link rel="stylesheet" href="lib/bootstrap-select/css/bootstrap-select.min.css">
    <link rel="stylesheet" href="lib/fontello/css/fontello.css"/>
    <link rel="stylesheet" href="lib/unslider/unslider.css"/>
    <link rel="stylesheet" href="lib/scroll/jquery.scrollbar.css">
    <% if (env === "production") { %>
    <link rel="stylesheet" href="css/discounts.css">
    <% } %>

    <script type="text/javascript" src="lib/nodeFlow/depnd/underscore.js"></script>
    <script type="text/javascript" src="lib/vue/vue.js"></script>
    <script type="text/javascript" src="lib/jquery/jquery.1.11.min.js"></script>
    <script type="text/javascript" src="lib/jquery/ui/jquery-ui.min.js"></script>
    <script type="text/javascript" src="lib/form/jquery-validation-1.17.0/jquery.validate.js"></script>
    <script type="text/javascript" src="lib/form/jquery-validation-1.17.0/additional-methods.js"></script>
    <script type="text/javascript" src="lib/form/jquery-validation-1.17.0/localization/messages_zh.js"></script>
    <script type="text/javascript" src="lib/lazyloader/xLazyLoader.min.js"></script>
    <script type="text/javascript" src="lib/scroll/jquery.scrollbar.js"></script>
    <script type="text/javascript" src="lib/spin/spin.min.js"></script>
    <script type="text/javascript" src="lib/bootstrap-table/bootstrap.min.js?v=3.3.6"></script>
    <script type="text/javascript" src="lib/bootstrap3-dialog/bootstrap-dialog.js"></script>
    <script type="text/javascript" src="lib/bootstrap-select/js/bootstrap-select.js"></script>
    <script type="text/javascript" src="lib/layer/layer.js"></script>
    <script type="text/javascript" src="lib/unslider/unslider.js"></script>
    <script type="text/javascript" src="lib/nodeFlow/depnd/raphael.js" defer></script>
    <script type="text/javascript" src="lib/codemirror/codemirror.js" defer></script>
</head>
<body>
<%include ./consult-service.html%>
<div class="main-container">
    <%include ./header.html%>
    <div class="body">
        <div class="banner">
            <div class="inner-wrapper">
                <img src="img/dicounts.png" alt="">
            </div>
        </div>
        <div class="news">
            <div class="inner-wrapper">
                <div class="title">
                    <span>租赁优惠</span>
                    <em>Lease preferential</em>
                </div>
                <%
                    let firstDiscounts = discounts[0] || {};
                %>
                <p><a href="<%=firstDiscounts.isLink === 0 ?'discounts/'+firstDiscounts.id:firstDiscounts.linkUrl %>" target="_blank"><%=firstDiscounts.title%></a></p>
                <div class="news-list">
                    <div class="left">
                        <img src="img/news1.png" alt="">
                    </div>
                    <div class="right">
                        <div class="caption">租赁优惠政策</div>
                        <ul class="list">
                            <%
                            for(let i=1;i< discounts.length; i++){
                                let time = discounts[i].createTime+'';
                                let timeStr = time ? time.substring(0,time.indexOf(' ')):'';
                            %>
                            <li><span><%=timeStr%></span><a href="<%=discounts[i].isLink === 0 ?'discounts/'+discounts[i].id:discounts[i].linkUrl %>" target="_blank"><%=discounts[i].title%></a></li>
                            <%}%>
                        </ul>
                    </div>
                </div>
                <div class="title">
                    <span>用户推广</span>
                    <em>Users promotion</em>
                </div>
                <%
                let firstGeneralize = generalize[0] || {};
                %>
                <p><a  href="<%=firstGeneralize.isLink === 0 ?'discounts/'+firstGeneralize.id:firstGeneralize.linkUrl%>" target="_blank"><%=firstGeneralize.title%></a></p>
                <div class="news-list">
                    <div class="left">
                        <img src="img/news2.png" alt="">
                    </div>
                    <div class="right">
                        <div class="caption">用户推广优惠政策</div>
                        <ul class="list">
                            <%
                            for(let i=1;i< generalize.length; i++){
                            let time = generalize[i].createTime+'';
                            let timeStr = time ? time.substring(0,time.indexOf(' ')):'';
                            %>
                            <li><span><%=timeStr%></span><a href="<%=generalize[i].isLink === 0 ?'discounts/'+generalize[i].id:generalize[i].linkUrl%>"  target="_blank"><%=generalize[i].title%></a></li>
                            <%}%>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <%include ./footer.html%>
</div>


<script src="js/common/manifest.js"></script>
<script src="js/common/constant.js"></script>
<script src="js/common/common.js"></script>
<script src="js/discounts.js"></script>
<% if (env !== "production" && reload) { %>
<script src="../reload/reload.js"></script>
<% } %>
</body>
</html>
























